<template>
    <div>
        <h1>匿名路由中间件</h1>
    </div>
</template>
<script setup lang="ts">
definePageMeta({
    middleware: defineNuxtRouteMiddleware((to, from) => {
        let user = false
        if (!user) {
            return navigateTo('/login')
        }
    })
})
</script>
